PolylineOptions

Deprecated

Builder for composing Polyline objects.

Deprecated

As of 7.0.0, use Mapbox Annotation Plugin instead

Constructors

Link copied to clipboard
open fun PolylineOptions()
Defines options for a polyline.

Functions

Link copied to clipboard
open fun add(points: Array<LatLng>): PolylineOptions
Adds vertices to the end of the polyline being built.
open fun add(point: LatLng): PolylineOptions
Adds a vertex to the end of the polyline being built.
Link copied to clipboard
Adds vertices to the end of the polyline being built.
Link copied to clipboard
Set the alpha value of the polyline.
Link copied to clipboard
open fun color(color: Int): PolylineOptions
Sets the color of the polyline as a 32-bit ARGB color.
Link copied to clipboard
open fun describeContents(): Int
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Link copied to clipboard
open fun equals(@Nullable o: Any): Boolean
Compares this PolylineOptions object with another PolylineOptions and determines if their color, alpha, width, and vertices match.
Link copied to clipboard
open fun getAlpha(): Float
Gets the alpha set for this PolylineOptions object.
Link copied to clipboard
open fun getColor(): Int
Gets the color set for this PolylineOptions object.
Link copied to clipboard
open fun getPoints(): List<LatLng>
Gets the points set for this PolylineOptions object.
Link copied to clipboard
open fun getWidth(): Float
Gets the width set for this PolylineOptions object.
Link copied to clipboard
open fun hashCode(): Int
Gives an integer which can be used as the bucket number for storing elements of the set/map.
Link copied to clipboard
Sets the width of the polyline in screen pixels.
Link copied to clipboard
open fun writeToParcel(out: Parcel, flags: Int)
Flatten this object in to a Parcel.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val polyline: Polyline